home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
Bank smakow
/
BankSmakow.air
/
BankSmakow.swf
/
scripts
/
BankSmakow.as
< prev
next >
Wrap
Text File
|
2009-12-16
|
36KB
|
896 lines
package
{
import air.update.ApplicationUpdaterUI;
import com.adobe.cairngorm.control.CairngormEventDispatcher;
import com.makingwaves.config.Configuration;
import com.makingwaves.controller.Controller;
import com.makingwaves.events.LoadDataEvent;
import com.makingwaves.events.LoadLocalDataEvent;
import com.makingwaves.logic.LocalFridge;
import com.makingwaves.sql.DatabaseManager;
import com.makingwaves.view.MainView;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.system.Capabilities;
import mx.core.UIComponentDescriptor;
import mx.core.WindowedApplication;
import mx.core.mx_internal;
import mx.events.AIREvent;
import mx.events.FlexEvent;
import mx.events.PropertyChangeEvent;
import mx.styles.CSSStyleDeclaration;
import mx.styles.StyleManager;
use namespace mx_internal;
public class BankSmakow extends WindowedApplication
{
mx_internal static var _BankSmakow_StylesInit_done:Boolean = false;
private var _embed_css____assets_print_icon_png_92642463:Class;
private var _embed_css____assets_close_png_1664660227:Class;
private var _3619493view:MainView;
private var _embed_css____assets_check_png_2076268035:Class;
private var _embed_css____assets_reset_png_1335965817:Class;
private var _embed_css____assets_check_3_png_347691139:Class;
private var _embed__font_Segoe_bold_normal_1615122434:Class;
private var _637428636controller:Controller;
private var _embed_css____assets_check_2_png_344324487:Class;
private var _embed_css____assets_configuration_png_822067165:Class;
private var _embed_css____assets_about_png_542010887:Class;
private var _embed_css____assets_skins_swf_ThumbTrack_1922948728:Class;
private var _embed_css____assets_close_2_png_897770631:Class;
private var _embed_css____assets_skins_swf_ThumbBar_209368864:Class;
private var _embed_css____assets_details_close_png_557543367:Class;
private var _embed_css____assets_checkChecked_3_png_2092627593:Class;
private var _embed_css____assets_categoryOpened_png_1130679933:Class;
private var _embed_css____assets_checkChecked_2_png_2082817921:Class;
private var _embed_css____assets_background_png_1753739099:Class;
private var _embed_css____assets_minimize_png_617510363:Class;
private var _embed_css____assets_skins_swf_ThumbUp_1589808316:Class;
private var _embed__font_Myriad_medium_normal_427115143:Class;
private var _embed_css____assets_categoryClosed_png_1536913883:Class;
private var _embed_css____assets_skins_swf_ThumbDown_1412742105:Class;
private var _embed_css____assets_notification_png_1486160547:Class;
private var _embed__font_Segoe_medium_normal_566201103:Class;
private var appUpdater:ApplicationUpdaterUI;
private var _documentDescriptor_:UIComponentDescriptor;
private var _embed_css____assets_checkChecked_png_2019325651:Class;
public function BankSmakow()
{
_documentDescriptor_ = new UIComponentDescriptor({
"type":WindowedApplication,
"propertiesFactory":function():Object
{
return {
"width":925,
"height":790,
"childDescriptors":[new UIComponentDescriptor({
"type":MainView,
"id":"view",
"propertiesFactory":function():Object
{
return {"y":50};
}
})]
};
}
});
appUpdater = new ApplicationUpdaterUI();
_embed__font_Myriad_medium_normal_427115143 = BankSmakow__embed__font_Myriad_medium_normal_427115143;
_embed__font_Segoe_bold_normal_1615122434 = BankSmakow__embed__font_Segoe_bold_normal_1615122434;
_embed__font_Segoe_medium_normal_566201103 = BankSmakow__embed__font_Segoe_medium_normal_566201103;
_embed_css____assets_about_png_542010887 = BankSmakow__embed_css____assets_about_png_542010887;
_embed_css____assets_background_png_1753739099 = BankSmakow__embed_css____assets_background_png_1753739099;
_embed_css____assets_categoryClosed_png_1536913883 = BankSmakow__embed_css____assets_categoryClosed_png_1536913883;
_embed_css____assets_categoryOpened_png_1130679933 = BankSmakow__embed_css____assets_categoryOpened_png_1130679933;
_embed_css____assets_checkChecked_2_png_2082817921 = BankSmakow__embed_css____assets_checkChecked_2_png_2082817921;
_embed_css____assets_checkChecked_3_png_2092627593 = BankSmakow__embed_css____assets_checkChecked_3_png_2092627593;
_embed_css____assets_checkChecked_png_2019325651 = BankSmakow__embed_css____assets_checkChecked_png_2019325651;
_embed_css____assets_check_2_png_344324487 = BankSmakow__embed_css____assets_check_2_png_344324487;
_embed_css____assets_check_3_png_347691139 = BankSmakow__embed_css____assets_check_3_png_347691139;
_embed_css____assets_check_png_2076268035 = BankSmakow__embed_css____assets_check_png_2076268035;
_embed_css____assets_close_2_png_897770631 = BankSmakow__embed_css____assets_close_2_png_897770631;
_embed_css____assets_close_png_1664660227 = BankSmakow__embed_css____assets_close_png_1664660227;
_embed_css____assets_configuration_png_822067165 = BankSmakow__embed_css____assets_configuration_png_822067165;
_embed_css____assets_details_close_png_557543367 = BankSmakow__embed_css____assets_details_close_png_557543367;
_embed_css____assets_minimize_png_617510363 = BankSmakow__embed_css____assets_minimize_png_617510363;
_embed_css____assets_notification_png_1486160547 = BankSmakow__embed_css____assets_notification_png_1486160547;
_embed_css____assets_print_icon_png_92642463 = BankSmakow__embed_css____assets_print_icon_png_92642463;
_embed_css____assets_reset_png_1335965817 = BankSmakow__embed_css____assets_reset_png_1335965817;
_embed_css____assets_skins_swf_ThumbBar_209368864 = BankSmakow__embed_css____assets_skins_swf_ThumbBar_209368864;
_embed_css____assets_skins_swf_ThumbDown_1412742105 = BankSmakow__embed_css____assets_skins_swf_ThumbDown_1412742105;
_embed_css____assets_skins_swf_ThumbTrack_1922948728 = BankSmakow__embed_css____assets_skins_swf_ThumbTrack_1922948728;
_embed_css____assets_skins_swf_ThumbUp_1589808316 = BankSmakow__embed_css____assets_skins_swf_ThumbUp_1589808316;
super();
mx_internal::_document = this;
if(!this.styleDeclaration)
{
this.styleDeclaration = new CSSStyleDeclaration();
}
this.styleDeclaration.defaultFactory = function():void
{
this.showFlexChrome = false;
};
mx_internal::_BankSmakow_StylesInit();
this.layout = "absolute";
this.width = 925;
this.height = 790;
this.showTitleBar = false;
this.showStatusBar = false;
this.horizontalScrollPolicy = "off";
this.verticalScrollPolicy = "off";
_BankSmakow_Controller1_i();
this.addEventListener("windowComplete",___BankSmakow_WindowedApplication1_windowComplete);
this.addEventListener("creationComplete",___BankSmakow_WindowedApplication1_creationComplete);
this.addEventListener("remove",___BankSmakow_WindowedApplication1_remove);
}
private function updateFail(param1:Event) : void
{
}
private function onWindowComplete(param1:Event) : void
{
nativeWindow.x = (Capabilities.screenResolutionX - nativeWindow.width) / 2;
nativeWindow.y = (Capabilities.screenResolutionY - nativeWindow.height) / 2;
nativeWindow.visible = true;
CairngormEventDispatcher.getInstance().dispatchEvent(new LoadLocalDataEvent());
CairngormEventDispatcher.getInstance().dispatchEvent(new LoadDataEvent());
}
override public function initialize() : void
{
mx_internal::setDocumentDescriptor(_documentDescriptor_);
super.initialize();
}
public function ___BankSmakow_WindowedApplication1_windowComplete(param1:AIREvent) : void
{
onWindowComplete(param1);
}
public function set controller(param1:Controller) : void
{
var _loc2_:Object = this._637428636controller;
if(_loc2_ !== param1)
{
this._637428636controller = param1;
this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"controller",_loc2_,param1));
}
}
[Bindable(event="propertyChange")]
public function get view() : MainView
{
return this._3619493view;
}
private function onRemove(param1:Event) : void
{
DatabaseManager.getInstance().close();
}
[Bindable(event="propertyChange")]
public function get controller() : Controller
{
return this._637428636controller;
}
public function ___BankSmakow_WindowedApplication1_creationComplete(param1:FlexEvent) : void
{
checkUpdate(param1);
}
public function set view(param1:MainView) : void
{
var _loc2_:Object = this._3619493view;
if(_loc2_ !== param1)
{
this._3619493view = param1;
this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"view",_loc2_,param1));
}
}
public function ___BankSmakow_WindowedApplication1_remove(param1:FlexEvent) : void
{
onRemove(param1);
}
private function _BankSmakow_Controller1_i() : Controller
{
var _loc1_:Controller = new Controller();
controller = _loc1_;
return _loc1_;
}
mx_internal function _BankSmakow_StylesInit() : void
{
var style:CSSStyleDeclaration = null;
var effects:Array = null;
if(mx_internal::_BankSmakow_StylesInit_done)
{
return;
}
mx_internal::_BankSmakow_StylesInit_done = true;
style = StyleManager.getStyleDeclaration(".RecipeDetailsTitle");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".RecipeDetailsTitle",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.leading = 0.5;
this.fontSize = 20;
};
}
style = StyleManager.getStyleDeclaration(".ManuButton");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".ManuButton",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.color = 16777215;
this.skin = null;
this.fontWeight = "normal";
this.fontSize = 13;
};
}
style = StyleManager.getStyleDeclaration("Application");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("Application",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.color = 2627846;
this.fontWeight = "normal";
this.padding = 0;
this.marginRight = 0;
this.backgroundImage = _embed_css____assets_background_png_1753739099;
this.marginLeft = 0;
this.marginTop = 0;
this.backgroundSize = "100%";
this.backgroundColor = 16777215;
this.marginBottom = 0;
this.fontFamily = "Segoe";
};
}
style = StyleManager.getStyleDeclaration(".RecipeDetailsPreparationPrint");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".RecipeDetailsPreparationPrint",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.color = 0;
this.fontSize = 13;
};
}
style = StyleManager.getStyleDeclaration(".Close");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".Close",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.selectedDownSkin = _embed_css____assets_close_png_1664660227;
this.selectedUpSkin = _embed_css____assets_close_png_1664660227;
this.selectedOverSkin = _embed_css____assets_close_png_1664660227;
this.upSkin = _embed_css____assets_close_png_1664660227;
this.downSkin = _embed_css____assets_close_png_1664660227;
this.overSkin = _embed_css____assets_close_png_1664660227;
this.selectedDisabledSkin = _embed_css____assets_close_png_1664660227;
this.disabledSkin = _embed_css____assets_close_png_1664660227;
};
}
style = StyleManager.getStyleDeclaration("CheckBox");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("CheckBox",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.disabledIcon = _embed_css____assets_check_png_2076268035;
this.selectedDisabledIcon = _embed_css____assets_checkChecked_png_2019325651;
this.cornerRadius = 0;
this.selectedOverIcon = _embed_css____assets_checkChecked_png_2019325651;
this.overIcon = _embed_css____assets_check_png_2076268035;
this.upIcon = _embed_css____assets_check_png_2076268035;
this.selectedDownIcon = _embed_css____assets_checkChecked_png_2019325651;
this.selectedUpIcon = _embed_css____assets_checkChecked_png_2019325651;
this.downIcon = _embed_css____assets_check_png_2076268035;
};
}
style = StyleManager.getStyleDeclaration(".Recipes");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".Recipes",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.backgroundAlpha = 0;
this.borderThickness = 0;
this.paddingBottom = -5;
};
}
style = StyleManager.getStyleDeclaration(".ShowNew");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".ShowNew",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.selectedDisabledIcon = _embed_css____assets_checkChecked_2_png_2082817921;
this.selectedOverIcon = _embed_css____assets_checkChecked_2_png_2082817921;
this.textRollOverColor = 170555;
this.overIcon = _embed_css____assets_check_2_png_344324487;
this.fontSize = 13;
this.labelOffset = 0;
this.selectedDownIcon = _embed_css____assets_checkChecked_2_png_2082817921;
this.disabledIcon = _embed_css____assets_check_2_png_344324487;
this.color = 170555;
this.upIcon = _embed_css____assets_check_2_png_344324487;
this.selectedUpIcon = _embed_css____assets_checkChecked_2_png_2082817921;
this.textSelectedColor = 170555;
this.downIcon = _embed_css____assets_check_2_png_344324487;
};
}
style = StyleManager.getStyleDeclaration(".Minimize");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".Minimize",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.selectedDownSkin = _embed_css____assets_minimize_png_617510363;
this.selectedUpSkin = _embed_css____assets_minimize_png_617510363;
this.selectedOverSkin = _embed_css____assets_minimize_png_617510363;
this.upSkin = _embed_css____assets_minimize_png_617510363;
this.downSkin = _embed_css____assets_minimize_png_617510363;
this.overSkin = _embed_css____assets_minimize_png_617510363;
this.selectedDisabledSkin = _embed_css____assets_minimize_png_617510363;
this.disabledSkin = _embed_css____assets_minimize_png_617510363;
};
}
style = StyleManager.getStyleDeclaration(".Description");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".Description",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.fontWeight = "normal";
this.leading = -1;
this.fontSize = 12;
};
}
style = StyleManager.getStyleDeclaration(".LinkHoover");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".LinkHoover",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.skin = null;
this.color = 16777215;
this.fontWeight = "normal";
this.textRollOverColor = 16777215;
this.textDecoration = "underline";
this.fontSize = 14;
this.textSelectedColor = 16777215;
};
}
style = StyleManager.getStyleDeclaration(".Configuration");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".Configuration",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.color = 16777215;
this.fontWeight = "bold";
this.fontSize = 15;
this.backgroundImage = _embed_css____assets_configuration_png_822067165;
this.fontFamily = "Segoe";
};
}
style = StyleManager.getStyleDeclaration(".About");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".About",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.color = 16777215;
this.fontWeight = "bold";
this.fontSize = 15;
this.backgroundImage = _embed_css____assets_about_png_542010887;
this.fontFamily = "Segoe";
};
}
style = StyleManager.getStyleDeclaration(".RecipeDetailsPreparationTitlePrint");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".RecipeDetailsPreparationTitlePrint",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.color = 0;
this.fontSize = 15;
};
}
style = StyleManager.getStyleDeclaration(".Notification");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".Notification",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.color = 16777215;
this.fontWeight = "bold";
this.fontSize = 15;
this.backgroundImage = _embed_css____assets_notification_png_1486160547;
this.fontFamily = "Segoe";
};
}
style = StyleManager.getStyleDeclaration(".Link");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".Link",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.skin = null;
this.color = 16777215;
this.fontWeight = "normal";
this.textRollOverColor = 16777215;
this.textDecoration = "none";
this.fontSize = 14;
this.textSelectedColor = 16777215;
};
}
style = StyleManager.getStyleDeclaration(".RecipeTitle");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".RecipeTitle",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.fontSize = 20;
};
}
style = StyleManager.getStyleDeclaration(".Reset");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".Reset",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.disabledIcon = _embed_css____assets_reset_png_1335965817;
this.selectedDisabledIcon = _embed_css____assets_reset_png_1335965817;
this.skin = null;
this.selectedOverIcon = _embed_css____assets_reset_png_1335965817;
this.overIcon = _embed_css____assets_reset_png_1335965817;
this.upIcon = _embed_css____assets_reset_png_1335965817;
this.fontSize = 14;
this.selectedDownIcon = _embed_css____assets_reset_png_1335965817;
this.selectedUpIcon = _embed_css____assets_reset_png_1335965817;
this.downIcon = _embed_css____assets_reset_png_1335965817;
};
}
style = StyleManager.getStyleDeclaration(".PopupCloseButton");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".PopupCloseButton",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.selectedDownSkin = _embed_css____assets_close_2_png_897770631;
this.selectedUpSkin = _embed_css____assets_close_2_png_897770631;
this.selectedOverSkin = _embed_css____assets_close_2_png_897770631;
this.upSkin = _embed_css____assets_close_2_png_897770631;
this.downSkin = _embed_css____assets_close_2_png_897770631;
this.overSkin = _embed_css____assets_close_2_png_897770631;
this.selectedDisabledSkin = _embed_css____assets_close_2_png_897770631;
this.disabledSkin = _embed_css____assets_close_2_png_897770631;
};
}
style = StyleManager.getStyleDeclaration(".Option");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".Option",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.selectedDisabledIcon = _embed_css____assets_checkChecked_3_png_2092627593;
this.fontWeight = "normal";
this.selectedOverIcon = _embed_css____assets_checkChecked_3_png_2092627593;
this.textRollOverColor = 16777215;
this.overIcon = _embed_css____assets_check_3_png_347691139;
this.leading = -4;
this.fontSize = 13;
this.selectedDownIcon = _embed_css____assets_checkChecked_3_png_2092627593;
this.disabledIcon = _embed_css____assets_check_3_png_347691139;
this.upIcon = _embed_css____assets_check_3_png_347691139;
this.selectedUpIcon = _embed_css____assets_checkChecked_3_png_2092627593;
this.textSelectedColor = 16777215;
this.downIcon = _embed_css____assets_check_3_png_347691139;
};
}
style = StyleManager.getStyleDeclaration(".RecipeClose");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".RecipeClose",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.selectedDownSkin = _embed_css____assets_details_close_png_557543367;
this.selectedUpSkin = _embed_css____assets_details_close_png_557543367;
this.selectedOverSkin = _embed_css____assets_details_close_png_557543367;
this.upSkin = _embed_css____assets_details_close_png_557543367;
this.downSkin = _embed_css____assets_details_close_png_557543367;
this.overSkin = _embed_css____assets_details_close_png_557543367;
this.selectedDisabledSkin = _embed_css____assets_details_close_png_557543367;
this.disabledSkin = _embed_css____assets_details_close_png_557543367;
};
}
style = StyleManager.getStyleDeclaration(".Heading");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".Heading",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.color = 0;
this.fontSize = 16;
};
}
style = StyleManager.getStyleDeclaration(".RecipeDetailsPreparation");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".RecipeDetailsPreparation",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.fontSize = 13;
};
}
style = StyleManager.getStyleDeclaration(".TitleSmall");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".TitleSmall",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.paddingTop = 5;
this.color = 16777215;
this.fontWeight = "bold";
this.fontSize = 12;
};
}
style = StyleManager.getStyleDeclaration(".RecipeSubtitle");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".RecipeSubtitle",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.fontSize = 13;
};
}
style = StyleManager.getStyleDeclaration(".Ingredients");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".Ingredients",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.paddingLeft = 0;
this.defaultLeafIcon = null;
this.folderClosedIcon = null;
this.fontSize = 20;
this.backgroundAlpha = 0;
this.borderThickness = 0;
this.disclosureClosedIcon = _embed_css____assets_categoryClosed_png_1536913883;
this.paddingBottom = -15;
this.disclosureOpenIcon = _embed_css____assets_categoryOpened_png_1130679933;
this.folderOpenIcon = null;
this.fontFamily = "Segoe";
};
}
style = StyleManager.getStyleDeclaration(".RecipeDetailsPreparationTitle");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".RecipeDetailsPreparationTitle",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.fontSize = 15;
};
}
style = StyleManager.getStyleDeclaration(".Ingredient");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".Ingredient",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.fontSize = 15;
};
}
style = StyleManager.getStyleDeclaration(".RecipeDetailsIngredientsPrint");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".RecipeDetailsIngredientsPrint",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.color = 0;
this.backgroundAlpha = 0;
this.fontSize = 13;
this.borderThickness = 0;
this.paddingBottom = -15;
};
}
style = StyleManager.getStyleDeclaration(".RecipeDetailsIngredients");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".RecipeDetailsIngredients",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.backgroundAlpha = 0;
this.fontSize = 13;
this.borderThickness = 0;
this.paddingBottom = -15;
};
}
style = StyleManager.getStyleDeclaration(".MainWindow");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".MainWindow",style,false);
}
style = StyleManager.getStyleDeclaration("VScrollBar");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("VScrollBar",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.downArrowSkin = _embed_css____assets_skins_swf_ThumbDown_1412742105;
this.thumbSkin = _embed_css____assets_skins_swf_ThumbBar_209368864;
this.trackSkin = _embed_css____assets_skins_swf_ThumbTrack_1922948728;
this.upArrowSkin = _embed_css____assets_skins_swf_ThumbUp_1589808316;
};
}
style = StyleManager.getStyleDeclaration(".Print");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".Print",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.selectedDisabledIcon = _embed_css____assets_print_icon_png_92642463;
this.skin = null;
this.selectedOverIcon = _embed_css____assets_print_icon_png_92642463;
this.textRollOverColor = 16610051;
this.overIcon = _embed_css____assets_print_icon_png_92642463;
this.fontSize = 13;
this.selectedDownIcon = _embed_css____assets_print_icon_png_92642463;
this.fontFamily = "Segoe";
this.disabledIcon = _embed_css____assets_print_icon_png_92642463;
this.labelPlacement = "left";
this.upIcon = _embed_css____assets_print_icon_png_92642463;
this.selectedUpIcon = _embed_css____assets_print_icon_png_92642463;
this.downIcon = _embed_css____assets_print_icon_png_92642463;
};
}
style = StyleManager.getStyleDeclaration(".Title");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".Title",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.paddingTop = -2;
this.color = 16777215;
this.fontWeight = "bold";
this.fontSize = 20;
};
}
style = StyleManager.getStyleDeclaration(".ShowAll");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".ShowAll",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.color = 2627846;
this.textRollOverColor = 2627846;
this.fontSize = 13;
this.labelOffset = 0;
this.textSelectedColor = 2627846;
};
}
style = StyleManager.getStyleDeclaration(".RecipeDetailsTitlePrint");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration(".RecipeDetailsTitlePrint",style,false);
}
if(style.factory == null)
{
style.factory = function():void
{
this.color = 0;
this.fontSize = 20;
};
}
StyleManager.mx_internal::initProtoChainRoots();
}
private function checkUpdate(param1:Event) : void
{
var loader:URLLoader = null;
var event:Event = param1;
try
{
appUpdater.updateURL = Configuration.getInstance().updateUrl;
if(!LocalFridge.checkIfExists())
{
loader = new URLLoader();
loader.addEventListener(IOErrorEvent.IO_ERROR,updateFail);
loader.load(new URLRequest(appUpdater.updateURL));
}
appUpdater.isCheckForUpdateVisible = false;
appUpdater.isFileUpdateVisible = false;
appUpdater.isInstallUpdateVisible = true;
appUpdater.delay = 1;
appUpdater.initialize();
}
catch(e:Error)
{
trace("Error gathering stats");
}
}
}
}